package com.hjt.zhibo.extEncache;

import net.sf.ehcache.Element;
import net.sf.ehcache.search.attribute.AttributeExtractor;
import net.sf.ehcache.search.attribute.AttributeExtractorException;

import com.hjt.zhibo.model.TVRoom;


public class TvRoomNameAttributeExtractor implements AttributeExtractor {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8666664363813184066L;

	@Override
	public Object attributeFor(Element element, String attributeName)
			throws AttributeExtractorException {
		TVRoom tvRoom = (TVRoom) element.getObjectValue();  
		return tvRoom.getRoomName();
	}

}
